package cn.iocoder.yudao.module.lowcode.controller.admin.datasource.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.time.LocalDateTime;

@Schema(description = "管理后台 - 低代码数据源配置 Response VO")
@Data
public class LowcodeDataSourceConfigRespVO {

    @Schema(description = "编号", example = "1")
    private Long id;

    @Schema(description = "数据源名称", example = "测试数据源")
    private String name;

    @Schema(description = "数据库类型", example = "mysql")
    private String type;

    @Schema(description = "数据源连接URL", example = "jdbc:mysql://127.0.0.1:3306/test")
    private String url;

    @Schema(description = "用户名", example = "root")
    private String username;

    @Schema(description = "驱动类名", example = "com.mysql.cj.jdbc.Driver")
    private String driverClassName;

    @Schema(description = "初始连接数", example = "1")
    private Integer initialSize;

    @Schema(description = "最小空闲连接数", example = "1")
    private Integer minIdle;

    @Schema(description = "最大连接数", example = "8")
    private Integer maxActive;

    @Schema(description = "测试查询语句", example = "SELECT 1")
    private String testQuery;

    @Schema(description = "状态", example = "0")
    private Integer status;

    @Schema(description = "创建时间")
    private LocalDateTime createTime;

    @Schema(description = "更新时间")
    private LocalDateTime updateTime;

}